package com.yuexun.dhdoctor.module.meetingMaterial.adapter;

import android.widget.AbsListView;

import com.yuexun.dhdoctor.R;
import com.yuexun.dhdoctor.module.meetingMaterial.bean.MeetingMaterialListBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by Administrator on 2016/11/15.
 */
public class MeetingMaterialListAdapter extends KJAdapter<MeetingMaterialListBean.Datas> {

    public MeetingMaterialListAdapter(AbsListView view, Collection<MeetingMaterialListBean.Datas> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, MeetingMaterialListBean.Datas item, boolean isScrolling, int position) {
        super.convert(helper, item, isScrolling, position);
        helper.setText(R.id.meeting_material_title_txt, item.getTitle());
        helper.setText(R.id.meeting_material_time_txt, item.getStartdate());
        helper.setText(R.id.meeting_material_from_txt, item.getFromname());
    }
}
